﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Admin_CapNhatLoaiSanPham : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
      
            string ma = Request.QueryString["ma"];
            SqlDataSource1.SelectCommand += "WHERE b1.[IDLoaiTL] =" + ma;
            
            if (!IsPostBack)
            {
                ListView1.DataBind();
            }

    }

    protected void Go_DanhSach()
    {
        Response.Redirect("QuanLyLoaiSanPham.aspx");
    }

    public string format_text(string i)
    {
        string aa = "";

        if (i.CompareTo("0") == 0)
            aa = "Soft";
        else

            aa = "Hard";

        return aa;
    }

}